﻿<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>学生信息管理</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <link rel="stylesheet" type="text/css" href="__STATIC__/admin/assets/lib/bootstrap/css/bootstrap.css"> 
    <link rel="stylesheet" type="text/css" href="__STATIC__/admin/assets/stylesheets/theme.css">
    <link rel="stylesheet" href="__STATIC__/admin/assets/lib/font-awesome/css/font-awesome.css">

    <script src="__STATIC__/admin/assets/lib/jquery-1.7.2.min.js" type="text/javascript"></script>

    <!-- Demo page code -->

    <style type="text/css">
        #line-chart {
            height:300px;
            width:800px;
            margin: 0px auto;
            margin-top: 1em;
        }
        .brand { font-family: georgia, serif; }
        .brand .first {
            color: #ccc;
            font-style: italic;
        }
        .brand .second {
            color: #fff;
            font-weight: bold;
        }
    </style>

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="__STATIC__/admin/assets/ico/favicon.ico">
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="__STATIC__/admin/assets/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="__STATIC__/admin/assets/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="__STATIC__/admin/assets/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="__STATIC__/admin/assets/ico/apple-touch-icon-57-precomposed.png">
  </head>

  <!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
  <!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
  <!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
  <!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
  <!--[if (gt IE 9)|!(IE)]><!--> 
  <body class=""> 
  <!--<![endif]-->
    
    <div class="navbar">
        <div class="navbar-inner">
                <ul class="nav pull-right">
                    
                    <li><a href="#" class="hidden-phone visible-tablet visible-desktop" role="button">Settings</a></li>
                    <li id="fat-menu" class="dropdown">
                        <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-user"></i> Jack Smith
                            <i class="icon-caret-down"></i>
                        </a>

                        <ul class="dropdown-menu">
                            <li><a tabindex="-1" href="#">My Account</a></li>
                            <li class="divider"></li>
                            <li><a tabindex="-1" class="visible-phone" href="#">Settings</a></li>
                            <li class="divider visible-phone"></li>
                            <li><a tabindex="-1" href="sign-in.html">Logout</a></li>
                        </ul>
                    </li>
                    
                </ul>
                <a class="brand" href="index.html"><span class="first"><img src="__STATIC__/img/logo/logo.png" height="20" width="100"></span>
        </div>
    </div>
    <div class="sidebar-nav">
        <form class="search form-inline">
            <input type="text" placeholder="Search...">
        </form>

        <a href="#dashboard-menu" class="nav-header" data-toggle="collapse"><i class="icon-dashboard"></i>用户信息管理</a>
        <ul id="dashboard-menu" class="nav nav-list collapse in">
            <li class="active"><a href="{:url('student/index')}">学生</a></li>
            <li ><a href="{:url('teacher412/index')}">老师</a></li>   
        </ul>

        <a href="#accounts-menu" class="nav-header" data-toggle="collapse"><i class="icon-briefcase"></i>视频资料管理</a>
        <ul id="accounts-menu" class="nav nav-list collapse">
            <li ><a href="{:url('videotype/index')}">视频类型</a></li>
            <li ><a href="{:url('video/index')}">视频信息</a></li>
        </ul>

        <a href="#error-menu" class="nav-header collapsed" data-toggle="collapse"><i class="icon-exclamation-sign"></i>未设置 <i class="icon-chevron-up"></i></a>
        <ul id="error-menu" class="nav nav-list collapse">
            <li ><a href="#">1</a></li>
            <li ><a href="#">2</a></li>
        </ul>

        <a href="#legal-menu" class="nav-header" data-toggle="collapse"><i class="icon-legal"></i>未设置</a>
        <ul id="legal-menu" class="nav nav-list collapse">
            <li ><a href="#">1</a></li>
            <li ><a href="#">2</a></li>
        </ul>

        <a href="#" class="nav-header" ><i class="icon-question-sign"></i>1</a>
        <a href="#" class="nav-header" ><i class="icon-comment"></i>2</a>
    </div>
    

    
    <div class="content">
        
        <div class="header">
            
            <h1 class="page-title">学生信息</h1>
        </div>
                <ul class="breadcrumb">
            <li><a href="index.html">Home</a> <span class="divider">/</span></li>
            <li class="active">Student</li>
        </ul>

        <div class="container-fluid">
            <div class="row-fluid">
                    
<div class="btn-toolbar">
          <form  action="" class="btn">
    请输入学生姓名：
    <input type="text" name="key">
    <input type="submit" value="搜索">  
    </form>
    <button class="btn btn-primary" data-title="Add" data-toggle="modal" data-target="#example_modal"><i class="icon-plus"></i> 添加学生信息</button>
    <button class="btn" >Import</button>
    <button class="btn">Export</button>
  <div class="btn-group">
  </div>
</div>
<div class="well">
    <table class="table">
      <thead>
        <tr>
          <th>编号</th>
          <th>姓名</th>
          <th>性别</th>
	  <th>图片</th>
          <th>状态</th>
          <th>邮箱</th>
          <th>密码</th>
          <th>操作</th>
          <th style="width: 26px;"></th>
        </tr>
      </thead>
      <tbody>
	  {volist name="students" id="st"}
        <tr>
          <td>{$i}</td>
          <td>{$st.student_name}</td>
          <td>
              {if condition="$st.gender==1"}<span class="label label-important">男</span>
              {else /}<span class="label label-success">女</span>
              {/if}
          </td>
	  <td><img src="__STATIC__/admin/student_pic/{$st.pic}" width="100"></td>
          <td>
              {if condition="$st.status==1"}<span class="label label-success">在线</span>
              {else /}<span class="label">下线</span>
              {/if}
          </td>
          <td>{$st.email}</td>
          <td>{$st.password}</td>
          <td>
              <a href="user.html"><i class="icon-pencil"></i></a>
              <a href="{:url('student/delete',['id'=>$st.student_id])}" role="button" ><i class="icon-remove"></i></a>
          </td>
        </tr>
       {/volist}
      </tbody>
    </table>
</div>
<div id="example_modal" class="modal hide fade" style="width: 430px;" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3 id="myModalLabel">添加学生信息</h3>
      </div>
      <div class="modal-body">
        <p>
        	 <form class="form-horizontal" method="post" action="{:url('student/add')}" enctype="multipart/form-data">
                  <div class="control-group" style="margin-left:-100px ;">
                    <label class="control-label" >姓名</label>
                    <div class="controls">
                      <input class="span7" style="width: 300px;" type="text" placeholder="studentname" name="studentname">
                    </div>
                  </div>
                  <div class="control-group" style="margin-left:-100px ;">
                    <label class="control-label">课程名</label>
                      <div class="controls">
                     </div>
                  </div>
                  <div class="control-group" style="margin-left:-100px ;">
                    <label class="control-label">附件</label>
                    <div class="controls">
                      <input type="file" id="exampleInputFile" name="attachment" required>
                    </div>
                  </div>
                  <div class="control-group" style="margin-left:-100px ;">
                    <label class="control-label">要求</label>
                      <div class="controls">
                        <textarea class="span7" rows="5" style="height:100px; width: 300px;" name="intro"></textarea>
                      </div>
                  </div>
                  <div class="control-group" style="margin-left:-100px ;">
                <label class="control-label">开始时间</label>
                      <div class="controls">
                   <input type="date" name="opentime" class="form-control" id="exampleInputBirth" placeholder="开始时间" required>
                    </div>
                  </div>  
				<div class="control-group" style="margin-left:-100px ;">
                <label class="control-label">截止时间</label>
                      <div class="controls">
                   <input type="date" name="closetime" class="form-control" id="exampleInputBirth" placeholder="截止时间" required>
                    </div>
                  </div> 
				  
				  
                  
                  <div>
               <button class="btn btn-primary" type="submit">添加</button>
               <button class="btn" type="reset">重置</button>
    				</div>
                </form>
        </p> 
      </div>
    </div>  
<div class="pagination">
    <ul>
        <li><a href="#">Prev</a></li>
        <li><a href="#">1</a></li>
        <li><a href="#">2</a></li>
        <li><a href="#">3</a></li>
        <li><a href="#">4</a></li>
        <li><a href="#">Next</a></li>
    </ul>
</div>

<div class="modal small hide fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3 id="myModalLabel">Delete Confirmation</h3>
    </div>
    <div class="modal-body">
        <p class="error-text"><i class="icon-warning-sign modal-icon"></i>Are you sure you want to delete the user?</p>
    </div>
    <div class="modal-footer">
        <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
        <button class="btn btn-danger" data-dismiss="modal">Delete</button>
    </div>
</div>

            </div>
        </div>
    </div>
    


    <script src="__STATIC__/admin/assets/lib/bootstrap/js/bootstrap.js"></script>
    <script type="text/javascript">
        $("[rel=tooltip]").tooltip();
        $(function() {
            $('.demo-cancel-click').click(function(){return false;});
        });
    </script>
    
  </body>
</html>


